package cn.xfdzx.android.apps.shop.fragment.home.presenter;

import android.util.Log;

import cn.xfdzx.android.apps.shop.base.BasePresenterImp;
import cn.xfdzx.android.apps.shop.base.NetCallBackImpl;
import cn.xfdzx.android.apps.shop.bean.FoundGoodContentBeen;
import cn.xfdzx.android.apps.shop.fragment.home.contract.MarketNearGoodsContract;
import cn.xfdzx.android.apps.shop.fragment.home.model.IHomeMarketMode;
import cn.xfdzx.android.apps.shop.fragment.home.model.MarketNearGoodsModel;
import cn.xfdzx.android.apps.shop.fragment.home.request.NearGoodsRequest;

public class MarketNearGoodsPresenter extends BasePresenterImp<MarketNearGoodsContract.View, IHomeMarketMode> implements MarketNearGoodsContract.Presenter {

    private static final String TAG = "MarketNearGoodsPresente";
    @Override
    public IHomeMarketMode createModel() {
        return new MarketNearGoodsModel();
    }

    @Override
    public void getNearGoods(NearGoodsRequest nearGoodsRequest) {
        mModel.getNearGoodsData(nearGoodsRequest, new NetCallBackImpl<FoundGoodContentBeen>(mView) {
            @Override
            public void onSuccess(FoundGoodContentBeen foundGoodContentBeen) {
                mView.getSuccess(foundGoodContentBeen);
            }

            @Override
            public void onFailure(String reason) {


            }
        });
    }
}
